package com.vhall.component.entity.lottery.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 删除奖品请求VO
 *
 * @author zhangtao
 */
@Data
@NoArgsConstructor
public class AwardDeleteVO {

    /**
     * 应用ID
     */
    @ParamName("app_id")
    @JsonProperty("app_id")
    @NotBlank(message = "应用ID不能为空")
    private String appId;

    /**
     * B端用户ID
     */
    @ParamName("business_uid")
    @JsonProperty("business_uid")
    @NotNull(message = "B端用户ID不能为空")
    private Long businessUid;

    @NotBlank
    private String id;

    @Pattern(regexp = "(id)|(all)", message = "可选值：id,all")
    @NotBlank
    private String type;

}
